<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

/*
 |--------------------------------------------------------------------------
 | File and Directory Modes
 |--------------------------------------------------------------------------
 |
 | These prefs are used when checking and setting modes when working
 | with the file system.  The defaults are fine on servers with proper
 | security, but you may wish (or even need) to change the values in
 | certain environments (Apache running a separate process for each
 | user, PHP under CGI with Apache suEXEC, etc.).  Octal values should
 | always be used to set the mode correctly.
 |
 */

define('FILE_READ_MODE', 0644);
define('FILE_WRITE_MODE', 0666);
define('DIR_READ_MODE', 0755);
define('DIR_WRITE_MODE', 0777);

/*
 |--------------------------------------------------------------------------
 | File Stream Modes
 |--------------------------------------------------------------------------
 |
 | These modes are used when working with fopen()/popen()
 |
 */

define('FOPEN_READ',							'rb');
define('FOPEN_READ_WRITE',						'r+b');
define('FOPEN_WRITE_CREATE_DESTRUCTIVE',		'wb'); // truncates existing file data, use with care
define('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE',	'w+b'); // truncates existing file data, use with care
define('FOPEN_WRITE_CREATE',					'ab');
define('FOPEN_READ_WRITE_CREATE',				'a+b');
define('FOPEN_WRITE_CREATE_STRICT',				'xb');
define('FOPEN_READ_WRITE_CREATE_STRICT',		'x+b');

/*
 |--------------------------------------------------------------------------
 | User session
 |--------------------------------------------------------------------------
 |
 | These session are used for user who login, please don't modify
 |
 */

//管理员
define('SESSION_ADMIN_ID', 'session_admin_id');       //管理员的SESSION ID
define('SESSION_ADMIN_NAME', 'session_admin_name');   //管理员的SESSION NAME
define('SESSION_ADMIN_CID', 'session_admin_cid'); //管理员的SESSION CID

/*
 |--------------------------------------------------------------------------
 | User cookie
 |--------------------------------------------------------------------------
 |
 | These cookie are used for news/society home count as well as user login info, please don't modify
 | Except the constants 'COOKIE_SALT'
 |
 */

define('COOKIE_SALT', 'SHIFLETT');
define('COOKIE_NEWS_READ', COOKIE_SALT . 'news_read');
define('COOKIE_SOCIETY_HOME', COOKIE_SALT . 'society_home');
define('COOKIE_USER_AUTH', COOKIE_SALT . 'user_authentication');


/*
 * --------------------------------------------------------------
 * 网站重要常量
 * --------------------------------------------------------------
 */

//站点Base url应在此处设定，而不是config.php中
define('BASE_URL', 'http://localhost/');

//系统文件夹(若为documentroot则留空)
define('SYSTEM_FOLDER', 'neusal');

//管理员文件夹
define('ADMIN_FOLDER', 'backend');

define('DATABASE_BACKUP_FOLDER', $_SERVER['DOCUMENT_ROOT'] . '/' . SYSTEM_FOLDER . '/data/backupdata/');  //文件夹地址尾需包含'/'
define('USER_UPLOAD_PIC_FOLDER', "uploads/");  //文件夹地址尾需包含'/'
define('PIECEMAKER_CONFIG_FILE', $_SERVER['DOCUMENT_ROOT'] . '/' . SYSTEM_FOLDER . '/plugin/piecemaker/piecemaker.xml');
define('CONSTANTS_CONFIG_FILE', $_SERVER['DOCUMENT_ROOT'] . '/' . SYSTEM_FOLDER . '/application/config/constants.php');
define('DATABASE_CONFIG_FILE', $_SERVER['DOCUMENT_ROOT'] . '/' . SYSTEM_FOLDER . '/application/config/database.php');
define('MAIN_CONFIG_FILE', $_SERVER['DOCUMENT_ROOT'] . '/' . SYSTEM_FOLDER . '/application/config/config.php');
define('CORESEEK_CONFIG_FILE', $_SERVER['DOCUMENT_ROOT'] . '/' . SYSTEM_FOLDER . '/plugin/coreseek/etc/csft.conf');

//站点是否关闭 0:否 1:是
define('SITE_CLOSE', 0);
define('SITE_CLOSE_REASON', '站点定期维护中');
//////////////////////////////////////////////////

/*
 * --------------------------------------------------------------
 * 用户类别
 * --------------------------------------------------------------
 */

define('ADMIN', 'admin');
define('ADMIN_CHS', '管理员');
define('ADMIN_UCID', 1);

/*
 * --------------------------------------------------------------
 * 网站内容
 * --------------------------------------------------------------
 */

define('NOT_PUBLISHED', 1);
define('NOT_PUBLISHED_CHS', '未发布');

define('IS_PUBLISHED', 2);
define('IS_PUBLISHED_CHS', '已发布');

define('PER_PAGE', 10);

define('IS_DELETE', 0);
define('NOT_DELETE', 1);

define('PROVINCE_LEVEL', 1);
define('CITY_LEVEL', 2);

/*
 * --------------------------------------------------------------
 * 网站相关常量设定
 * --------------------------------------------------------------
 */
define('COMPANY_NAME_FULL', '鲁迅美术学院艺术工程总公司');
define('COMPANY_NAME_ABBR', '鲁美总公司');
define('SITE_NAME_FULL', 'TAEC - 鲁迅美术学院艺术工程总公司');     //站点全名
define('SITE_NAME_ENG', 'TAEC - ');                //站点英文名
define('SITE_NAME_CHS', '鲁迅美术学院艺术工程总公司 - ');    //站点中文名
define('SITE_TITLE_CHS', ' - 鲁迅美术学院艺术工程总公司官方网站');    //站点标题名
define('SITE_ERROR_404', SITE_NAME_ENG . '无法找到该页面');
define('SITE_AUTHOR_NAME_ENG', 'QianxunZhang');    //站点作者英文名

// Search Service
define('SEARCH_HTML', $_SERVER['DOCUMENT_ROOT'] . '/search.html');
define('SEARCH_REQUEST', BASE_URL . 'index.php/search/index/');
define('SEARCH_API_KEY', 'AIzaSyB4Jxh0zbAQKpLFELT7wwB7zhhpczP-LmM');
define('SEARCH_ENGINE_UNIQUE_ID', '016483278831031470853:_tnfxyp8m6o');

// Mail Service
define('MAIL_PROTOCOL', 'smtp');
define('SMTP_HOST', 'smtp.163.com');
define('SMTP_USER', '18809893861@163.com');
define('SMTP_PASS', '19910319');
define('MAILER_FROM_NAME', '鲁迅美术学院艺术工程总公司在线留言系统');
define('ADMIN_EMAIL', 'imp3i@vip.qq.com');

//管理员
define('BACKEND_ADMIN_PATH', BASE_URL . 'index.php/' . ADMIN_FOLDER . '/admin/index');
/////////////////////////////////////////////////

//主要CSS、JS
define('MAIN_CSS', BASE_URL . 'css/');
define('MAIN_JS', BASE_URL . 'js/');
define('MAIN_IMG', BASE_URL . 'images/');

//管理员后台CSS、JS
define('ADMIN_CSS', BASE_URL . 'admin_style/css/');
define('ADMIN_JS', BASE_URL . 'admin_style/js/');
define('ADMIN_APP_JS', BASE_URL . 'admin_style/js/app/');
define('FILE_ADMIN_APP_JS', $_SERVER['DOCUMENT_ROOT'] . '/' . 'admin_style/js/app/');
define('ADMIN_IMG', BASE_URL . 'admin_style/images/');
define('ADMIN_CONTEXT_MENU_IMG', ADMIN_IMG . 'context_menu/');

//网站插件
define('PLUGIN_JQUERY', BASE_URL . 'plugin/jquery-1.7.1.min.js');

define('PLUGIN_JQUERY_COOKIE', BASE_URL . 'plugin/jquery.cookie.js');

define('PLUGIN_BOOTSTRAP_CSS', BASE_URL . 'plugin/bootstrap/css/bootstrap.min.css');
define('PLUGIN_BOOTSTRAP_RESPONSIVE_CSS', BASE_URL . 'plugin/bootstrap/css/bootstrap-responsive.min.css');
define('PLUGIN_BOOTSTRAP_JS', BASE_URL . 'plugin/bootstrap/js/bootstrap.min.js');

define('PLUGIN_SPIN_MAIN_JS', BASE_URL . 'plugin/spin/jquery.spin.js');
define('PLUGIN_SPIN_CUSTOM_JS', BASE_URL . 'plugin/spin/spin.min.js');

define('PLUGIN_SLIDING_JS', BASE_URL . 'plugin/jquery.slidingGallery-1.2.js');

define('PLUGIN_TINYCAROUSEL_CSS', BASE_URL . 'plugin/tinycarousel/css/tinycarousel.css');
define('PLUGIN_TINYCAROUSEL_JS', BASE_URL . 'plugin/tinycarousel/js/jquery.tinycarousel.min.js');

define('PLUGIN_TINYSCROLLBAR_CSS', BASE_URL . 'plugin/tinyscrollbar/css/tinyscrollbar.css');
define('PLUGIN_TINYSCROLLBAR_JS', BASE_URL . 'plugin/tinyscrollbar/js/jquery.tinyscrollbar.min.js');

define('PLUGIN_COLORBOX_CSS', BASE_URL . 'plugin/colorbox/css/colorbox.css');
define('PLUGIN_COLORBOX_JS', BASE_URL . 'plugin/colorbox/js/jquery.colorbox.js');

define('PLUGIN_JQUERYUI_EFFECTS', BASE_URL . 'plugin/jqueryui/effects/');
define('PLUGIN_JQUERYUI_UI', BASE_URL . 'plugin/jqueryui/ui/');

define('PLUGIN_CONTAINER_SIMULATOR_JS', BASE_URL . 'plugin/container_simulator/js/jquery.container_simulator.js');

define('PLUGIN_CONTEXTMENU_CSS', BASE_URL . 'plugin/wdContextMenu/css/contextmenu.css');
define('PLUGIN_CONTEXTMENU_JS', BASE_URL . 'plugin/wdContextMenu/js/jquery.contextmenu.js');

define('PLUGIN_CKEDITOR_JS', BASE_URL . 'plugin/ckeditor/ckeditor.js');
define('PLUGIN_CKFINDER_JS', BASE_URL . 'plugin/ckfinder/ckfinder.js');
define('PLUGIN_CKFINDER_HTML', BASE_URL . 'plugin/ckfinder/ckfinder.html');
define('PLUGIN_CKFINDER_FOLDER', BASE_URL . 'plugin/ckfinder/');

define('PLUGIN_HTML5UPLOADER_JS', BASE_URL . 'plugin/html5uploader/js/jquery.html5uploader.min.js');
define('PLUGIN_HTML5UPLOADER_CSS', BASE_URL . 'plugin/html5uploader/css/html5uploader.css');

/* End of file constants.php */
/* Location: ./application/config/constants.php */